package com.kakaxi.mybilibili.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.List;

/**
 * 视频信息类
 * Created by kakaxi on 16/11/20.
 */

public class VideoBean {

    /** 来自 **/
    private String from;

    /** 结果 **/
    private String result;

    /** 格式化 **/
    private String format;

    /** 时间长度 **/
    private int timelength;

    /** 接受格式 **/
    @JSONField(name = "accept_format")
    private String acceptFormat;

    /** 接受质量 **/
    @JSONField(name = "accept_quality")
    private List<Integer> acceptQuality;

    /** 参数 **/
    @JSONField(name = "seek_param")
    private String seekParam;

    /** 类型 **/
    @JSONField(name = "seek_type")
    private String seekType;

    /** 视频链接数组 **/
    private List<VideoDurlBean> durl;

    public class VideoDurlBean {

        /** 排序 **/
        private int order;

        /** 长度 **/
        private int length;

        /** 大小 **/
        private int size;

        /** 播放链接 **/
        private String url;

        /** 备份播放链接 **/
        @JSONField(name = "backup_url")
        private List<String> backupUrl;

        public int getOrder() {
            return order;
        }

        public void setOrder(int order) {
            this.order = order;
        }

        public int getLength() {
            return length;
        }

        public void setLength(int length) {
            this.length = length;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public List<String> getBackupUrl() {
            return backupUrl;
        }

        public void setBackupUrl(List<String> backupUrl) {
            this.backupUrl = backupUrl;
        }
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public int getTimelength() {
        return timelength;
    }

    public void setTimelength(int timelength) {
        this.timelength = timelength;
    }

    public String getAcceptFormat() {
        return acceptFormat;
    }

    public void setAcceptFormat(String acceptFormat) {
        this.acceptFormat = acceptFormat;
    }

    public List<Integer> getAcceptQuality() {
        return acceptQuality;
    }

    public void setAcceptQuality(List<Integer> acceptQuality) {
        this.acceptQuality = acceptQuality;
    }

    public String getSeekParam() {
        return seekParam;
    }

    public void setSeekParam(String seekParam) {
        this.seekParam = seekParam;
    }

    public String getSeekType() {
        return seekType;
    }

    public void setSeekType(String seekType) {
        this.seekType = seekType;
    }

    public List<VideoDurlBean> getDurl() {
        return durl;
    }

    public void setDurl(List<VideoDurlBean> durl) {
        this.durl = durl;
    }
}
